<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php';
require_once DOCUMENT_ROOT . DIR_INCLUDE . 'head_script.php';

$ticket_quantity = filter_input(INPUT_POST, "ticket_quantity");
$city_id = filter_input(INPUT_POST, "city_id");
?>


<label>Cinema</label>
<?php
$list = api_booking::get_all_cinemas_by_filter($ticket_quantity, $city_id); 

?>
<div class="ui fluid selection dropdown">
    <div class="text">--Not Selected--</div>
    <i class="dropdown icon"></i>
    <input name="ddl_cinema" onchange="filter_change_for_cinema()" type="hidden" value="0">
    <div class="menu">
        <div class="item" data-value="0">--Not Selected--</div>
        <?php
        foreach ($list as $item) {
        ?>
        <div class="item" data-value="<?php echo $item['id']; ?>"><?php echo $item['name']; ?></div>
        <?php
        }?>
    </div>
</div>

